package com.ruoyi.sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sale.mapper.ProjectSaleMapper;
import com.ruoyi.sale.domain.ProjectSale;
import com.ruoyi.sale.service.IProjectSaleService;

/**
 * 售后管理Service业务层处理
 * 
 * @author 刘晋羽
 * @date 2025-08-07
 */
@Service
public class ProjectSaleServiceImpl implements IProjectSaleService 
{
    @Autowired
    private ProjectSaleMapper projectSaleMapper;

    /**
     * 查询售后管理
     * 
     * @param saleId 售后管理主键
     * @return 售后管理
     */
    @Override
    public ProjectSale selectProjectSaleBySaleId(Long saleId)
    {
        return projectSaleMapper.selectProjectSaleBySaleId(saleId);
    }

    /**
     * 查询售后管理列表
     * 
     * @param projectSale 售后管理
     * @return 售后管理
     */
    @Override
    public List<ProjectSale> selectProjectSaleList(ProjectSale projectSale)
    {
        return projectSaleMapper.selectProjectSaleList(projectSale);
    }

    /**
     * 新增售后管理
     * 
     * @param projectSale 售后管理
     * @return 结果
     */
    @Override
    public int insertProjectSale(ProjectSale projectSale)
    {
        return projectSaleMapper.insertProjectSale(projectSale);
    }

    /**
     * 修改售后管理
     * 
     * @param projectSale 售后管理
     * @return 结果
     */
    @Override
    public int updateProjectSale(ProjectSale projectSale)
    {
        return projectSaleMapper.updateProjectSale(projectSale);
    }

    /**
     * 批量删除售后管理
     * 
     * @param saleIds 需要删除的售后管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectSaleBySaleIds(Long[] saleIds)
    {
        return projectSaleMapper.deleteProjectSaleBySaleIds(saleIds);
    }

    /**
     * 删除售后管理信息
     * 
     * @param saleId 售后管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectSaleBySaleId(Long saleId)
    {
        return projectSaleMapper.deleteProjectSaleBySaleId(saleId);
    }
}
